//
//  NodeButton.m
//  iCompose
//
//  Created by Stephen Laughton on 21/11/09.
//  Copyright 2009 Black Cloud Studio. All rights reserved.
//

#import "NodeButton.h"


@implementation NodeButton

@synthesize owner;

-(id)initWithCoder:(NSCoder*)coder {
	//NSData *pngData = [coder decodeObjectForKey:@"PNGRepresentation"];
	//self.imageView.image = [[UIImage alloc] initWithData:pngData];
	owner = [[coder decodeObjectForKey:@"owner"] retain];
	return self;
}

-(void)encodeWithCoder:(NSCoder*)encoder {
	//[encoder encodeObject:UIImagePNGRepresentation(self.imageView.image) forKey:@"PNGRepresentation"];
	[encoder encodeObject: owner forKey: @"owner"];
}

- (void)dealloc {
    [super dealloc];
}

@end
